package cn.fengzhilun.javase.day04;

import java.util.Date;

import org.junit.Test;

public class atClass {
	@Test
	public void test() {
		Date d=new Date();
		System.out.println(d);
	}
	@Test
	public void test2() {
		Date d1=new Date();
		System.out.println("d1:"+d1);
		
		Date d2=new Date();
		System.out.println("d2:"+d2);
		
		d2.setMonth(10);
		System.out.println("d2:"+d2);
		System.out.println("d1:"+d1);
		
	}
	@Test
	public void test3() {
		Date d1=new Date();
		System.out.println("d1:"+d1);
		
		Date d2= d1;
		System.out.println("d2:"+d2);
		 
		d1.setMonth(10);
		System.out.println("d1:"+d1);
		System.out.println("d2:"+d2);
		
		d2.setMonth(12);
		System.out.println("d1:"+d1);
		System.out.println("d2:"+d2);
	}
}
